package com.sloth.bear.util;

import com.sloth.bear.exception.BusinessException;

/**
 * @author liufq
 * @since 2025-09-10 22-07-11
 */
public class AssertUtils {

    public static void isTrue(boolean expression, String message) {
        if (!expression) {
            throw new BusinessException(message);
        }
    }

    public static void notNull(Object object, String message) {
        if (object == null) {
            throw new BusinessException(message);
        }
    }

    public static void isNull(Object object, String message) {
        if (object != null) {
            throw new BusinessException(message);
        }
    }
}
